﻿using BaseGrpcEFCore.Entity;

namespace BaseGrpcServer.Repository
{
    public interface IUserRepository
    {
        IEnumerable<User> GetAll(Func<User, bool> predicate = null);
        IEnumerable<User> GetAll(int page, int pagesize); 
        int Create(User entity);
        int Update(long longId, User entity);
        int MultiDelete(string ids);
        bool EnsureCreated();
    }
}
